package com.erclab.xbuilder.formelements;

import com.erclab.internal.xpresso.formelements.Hidden;
import com.erclab.internal.xpresso.forms.Form;
import com.erclab.internal.xpresso.util.FormElementUtil;

public class UniqueKeyNameElement extends Hidden {

	@Override
	public String[] processSubmittedValues(Form theForm, String[] submittedValues) {
		String uniqueKeyName = "Id" + ((String[])FormElementUtil.getElementValue(theForm, "formName"))[0];		
		return new String[]{uniqueKeyName};
	}
	
}
